// --------------------------------------------------------------------
//   name 	: 
//   desc 	: 
//   version 	: 
//   dev 	: 
// --------------------------------------------------------------------
// DEPENDENCIES
// 
// --------------------------------------------------------------------
// CHANGE HISTORY
// 0.1 	Initial Release
// --------------------------------------------------------------------
	plugins.clearPremium = { // Get rid of the "get premium" messages
		'enhance_game_main' : function() {
			if ($("table.main").length > 1) {
				$("table.main:first,br").css({display: "none"});
			}
			$("table.vis").each(function() {
				var links = this.getElementsByTagName("a");
				if (links.length > 0) {
					if (/premium/.test(links[0].href)) {
						$(this).css({display: "none"});
					}
				}
			});
		},

// --------------------------------------------------------------------
// Function : 
// --------------------------------------------------------------------
  'enhance_game_smith' : function() {
	  if ($("table.main").length > 1) {
		  $("table.main:first,br").css({display: "none"});
	  }
	  $("table.vis").each(function() {
		  var links = this.getElementsByTagName("a");
		  if (links.length > 0) {
			  if (/premium/.test(links[0].href)) {
				  $(this).css({display: "none"});
			  }
		  }
	  });
  },

// --------------------------------------------------------------------
// Function : 
// --------------------------------------------------------------------
  'enhance_game_overview_villages' : function() {
	  if ($("table.main").length > 1) {
		  $("table.main:first,br").css({display: "none"});
	  }
	  $("table.vis").each(function() {
		  var links = this.getElementsByTagName("a");
		  if (links.length > 0) {
			  if (/premium/.test(links[0].href)) {
				  $(this).css({display: "none"});
			  }
		  }
	  });
  },
  'info' : {
	  'mandatory' : false,
   'name' : "Clear premium",
   'desc' : "Clear the premium messages from the game, who needs them, we got the TWE!",
   'version' : "0.1",
   'dev' : "Timas"
  }
	};
